<?php

namespace app\controller;

use app\controller\BaseController;
use app\repositories\IndexRepository;

class indexController extends BaseController
{

    protected $index;

    public function __construct(IndexRepository $index)
    {
        $this->index = $index;
    }

    public function getlist()
    {
        $list = $this->index->getlist();
        return $this->sendData($list);
    }

}
